package com.codeavatar.hardwaretester.model;

import android.bluetooth.BluetoothDevice;
import android.os.ParcelUuid;
import android.text.TextUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * +----------------------------------------------------------------------
 * | @Author: codeavatar   @Year：2022
 * +----------------------------------------------------------------------
 * | @Email: codeavatar@aliyun.com
 * +----------------------------------------------------------------------
 **/
public class BluetoothDeviceModel {

    private String pin;
    private String title;
    private String address;
    private List<BluetoothServiceModel> serviceModelList;
    private BluetoothDevice bluetoothDevice;
    private int checkedIndex = -1;

    public BluetoothDeviceModel() {}

    public BluetoothDeviceModel(String title, String address) {
        this.title = title;
        this.address = address;
        if(TextUtils.isEmpty(this.title)){
            this.title = "未知";
        }
    }

    public BluetoothDeviceModel(String pin, String title, String address) {
        this.pin = pin;
        this.title = title;
        this.address = address;
        if(TextUtils.isEmpty(this.title)){
            this.title = "未知";
        }
    }

    public String getPin() {
        return pin;
    }

    public void setPin(String pin) {
        this.pin = pin;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public List<BluetoothServiceModel> getServiceModelList() {
        return serviceModelList;
    }

    public void setServiceModelList(List<BluetoothServiceModel> serviceModelList) {
        this.serviceModelList = serviceModelList;
    }

    public BluetoothDevice getBluetoothDevice() {
        return bluetoothDevice;
    }

    public void setBluetoothDevice(BluetoothDevice bluetoothDevice) {
        this.bluetoothDevice = bluetoothDevice;
    }

    public int getCheckedIndex() {
        return checkedIndex;
    }

    public void setCheckedIndex(int checkedIndex) {
        this.checkedIndex = checkedIndex;
    }
}
